package com.wxq.auth.feign;

import com.wxq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Jim
 * @date 7:23 下午 2022/4/10
 * @description 远程调用发送验证码
 * @email:huwmz04153277@126.com
 */
@FeignClient("yomall-third-party")
public interface ThirdPartyFeignService {

    /**
     * 发送短信验证码
     * @param mobile
     * @param code
     * @return
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("mobile") String mobile, @RequestParam("code") String code);
}
